<?php
class BrandUrlValue extends AppModel {
	var $name = 'BrandUrlValue';
	var $displayField = 'value';
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	/*var $belongsTo = array(
		'Brand' => array(
			'className' => 'Brand',
			'foreignKey' => 'brand_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'MasterUrl' => array(
			'className' => 'MasterUrl',
			'foreignKey' => 'brand_url_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);*/
    
    function getValues($brandId)
    {
        return $this->find('all',array('conditions'=>array('BrandUrlValue.brand_id'=>$brandId)));
    }
}
